#include <iostream>
#include "select_server.h"
using namespace std;

int main(int argc, char *argv[])
{
    if (argc != 2)
    {
        cerr << "输入错误，please input：" << argv[0] << " + port..." << endl;
    }

    uint16_t port = stoi(argv[1]);

    unique_ptr<Select> usv = make_unique<Select>(port);
    usv->Init();
    usv->Run();

    return 0;
}